<template>
    <div class="header-nav">
        <nav>
            <!-- <a href="">点单</a>
            <a href="">订单</a>
            <a href="">我的</a> -->
            <router-link to="/" >点单</router-link>
            <router-link to="/orderlist" >订单</router-link>
            <router-link to="/user" >我的</router-link>

        </nav>
    </div>
</template>

<script>
    export default {
        name: 'HelloWorld',

    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
    .header-nav {
        width: 100%;
        height: 50px;
        /* border-bottom: 1px solid #999; */
        box-shadow: 0px 0px 6px #666;
        margin-bottom: 0.1rem;
        line-height: 50px;
        display: flex;
    }

    .header-nav nav {
        margin: 0 auto;
        box-sizing: border-box;
        width: auto;
        display: flex
    }

    .header-nav nav>a {
        padding: 0px 15px;
        display: inline-block;
        height: 50px;
        font-style: normal;
        text-decoration: none;
        color: #424242;
        font-size: 18px;
        font-weight: 500;
    }

    .header-nav nav>a.router-link-exact-active {
        color: #f40;
    }
</style>